'use strict';

const Controller = require('../../../core/common');

class QuestionsController extends Controller {

  async index() {
    const { ctx } = this;

    const attributes = ['id', 'title', 'brief'];

    const data = await ctx.service.v1.questions.findAll({ attributes });

    this.success(data);
  }

}

module.exports = QuestionsController;